﻿using Dapper;
using System;
using BCEntity.TMS.VehicleSuiteBusinessTemplate;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Threading.Tasks;
using BCCommon.TMS.Transport;

namespace BCData.TMS.VehicleSuiteBusinessTemplate
{
	/// <summary>
	/// 车辆套餐业务模板
	/// </summary>
	public interface IVehicleSuiteBusinessTemplateData
	{
		#region  成员方法
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		/// <param name="vehicleSuiteBusinessTemplateId">车辆套餐业务模板Id</param>
		Task<bool> Exists(int vehicleSuiteBusinessTemplateId);
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		/// <param name="vehicleSuiteBusinessTemplateId">车辆套餐业务模板Id</param>
		/// <param name="suiteBusinessType">套餐业务类型</param>
		Task<bool> Exists(int vehicleTransportBusinessConfigId, VehicleSuiteBusinessType suiteBusinessType);
		/// <summary>
		/// 增加车辆套餐业务模板
		/// </summary>
		/// <param name="entity">车辆套餐业务模板信息</param>
		Task<VehicleSuiteBusinessTemplateEntity> Add(VehicleSuiteBusinessTemplateEntity entity);
		/// <summary>
		/// 更新车辆套餐业务模板
		/// </summary>
		/// <param name="entity">车辆套餐业务模板信息</param>
		Task<VehicleSuiteBusinessTemplateEntity> Update(VehicleSuiteBusinessTemplateEntity entity);
		/// <summary>
		/// 删除车辆套餐业务模板
		/// </summary>
		/// <param name="vehicleSuiteBusinessTemplateId">车辆套餐业务模板Id</param>
		Task<bool> Delete(int vehicleSuiteBusinessTemplateId);
		/// <summary>
		/// 获取车辆套餐业务模板
		/// </summary>
		/// <param name="vehicleSuiteBusinessTemplateId">车辆套餐业务模板Id</param>
		Task<VehicleSuiteBusinessTemplateEntity> GetEntity(int vehicleSuiteBusinessTemplateId);
		/// <summary>
		/// 获取车辆套餐业务模板
		/// </summary>
		/// <param name="vehicleSuiteBusinessTemplateId">车辆套餐业务模板Id</param>
		/// <param name="suiteBusinessType">套餐业务类型</param>
		Task<VehicleSuiteBusinessTemplateEntity> GetEntity(int vehicleTransportBusinessConfigId, VehicleSuiteBusinessType suiteBusinessType);
		/// <summary>
		/// 获取车辆套餐业务模板列表
		/// </summary>
		Task<IEnumerable<VehicleSuiteBusinessTemplateEntity>> GetList();
		/// <summary>
		/// 获取车辆套餐业务模板分页列表
		/// </summary>
		/// <param name="suiteBusinessName">套餐业务名称</param>
		/// <param name="enabled">启用</param>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">每页数据条数</param>
		Task<(IEnumerable<VehicleSuiteBusinessTemplateEntity>, int)> Query(string suiteBusinessName,bool? enabled, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		/// <summary>
		/// 启用车辆套餐业务模板
		/// </summary>
		/// <param name="vehicleSuiteBusinessTemplateId">车辆套餐业务模板Id</param>
		/// <param name="adminId">员工Id</param>
		/// <param name="fullname">员工姓名</param>
		Task<bool> Enabled(int vehicleSuiteBusinessTemplateId,long adminId,string fullname);
		/// <summary>
		/// 禁用车辆套餐业务模板
		/// </summary>
		/// <param name="vehicleSuiteBusinessTemplateId">车辆套餐业务模板Id</param>
		/// <param name="adminId">员工Id</param>
		/// <param name="fullname">员工姓名</param>
		Task<bool> Disabled(int vehicleSuiteBusinessTemplateId, long adminId, string fullname);
		#endregion  成员方法
	}


}